Global Index
HTML5 JS API Index > File API Tutorials & Specs

FileSaver

Extends EventTarget.

Extended by FileWriter

This interface provides methods to monitor the asynchronous writing of blobs to disk using progress events [PROGRESS-EVENTS-ED] and event handler attributes.

Properties
const unsigned short
DONE = 2
The entire Blob has been written to the file, an error occurred during the write, or the write was aborted using abort(). The FileSaver is no longer writing the blob.
const unsigned short
INIT = 0
The object has been constructed, but there is no pending write.
const unsigned short
WRITING = 1
The blob is being written.
DOMError
error
The last error that occurred on the FileSaver.
Function
onabort
Handler for abort events.
Function
onerror
Handler for error events.
Function
onprogress
Handler for progress events.
Function
onwrite
Handler for write events.
Function
onwriteend
Handler for writeend events.
Function
onwritestart
Handler for writestart events.
unsigned short
readyState
The FileSaver object can be in one of 3 states.
Constructor
FileSaver(Blob data)
Operations
voidabort()